/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * SPDX-License-Identifier: MIT
 */

import { WorkflowJSON } from "@flowgram.ai/free-layout-editor";

export const initialData: WorkflowJSON = {
  nodes: [
    {
      id: "105482",
      type: "asset_edit",
      meta: {
        position: {
          x: 200.55,
          y: 112.29999999999998,
        },
      },
      data: {
        title: "资产信息",
      },
    },
    {
      id: "133429",
      type: "section_edit",
      meta: {
        position: {
          x: 701.6500000000001,
          y: 166.14999999999998,
        },
      },
      data: {
        title: "标的信息",
        section: {
          sectionName: '测试标的名称1',
        },
      },
    },
    {
      id: "100411",
      type: "public_edit",
      meta: {
        position: {
          x: 1703.8500000000001,
          y: 306.15,
        },
      },
      data: {
        title: "披露信息",
      },
    },
    {
      id: "112559",
      type: "entrust_edit",
      meta: {
        position: {
          x: 1202.75,
          y: 306.15,
        },
      },
      data: {
        title: "委托信息",
      },
    },
    {
      id: "136781",
      type: "confirm_listed",
      meta: {
        position: {
          x: 2204.9500000000003,
          y: 306.15,
        },
      },
      data: {
        title: "确认挂牌",
      },
    },
    {
      id: "131639",
      type: "deal_confirm",
      meta: {
        position: {
          x: 2706.05,
          y: 262.625,
        },
      },
      data: {
        title: "成交确认",
      },
    },
    {
      id: "115993",
      type: "deal_notice",
      meta: {
        position: {
          x: 3708.25,
          y: 354.675,
        },
      },
      data: {
        title: "成交公告",
      },
    },
    {
      id: "148353",
      type: "deal_voucher",
      meta: {
        position: {
          x: 3207.15,
          y: 408.20000000000005,
        },
      },
      data: {
        title: "交易凭证",
      },
    },
    {
      id: "144017",
      type: "money_receive",
      meta: {
        position: {
          x: 3207.15,
          y: 204.09999999999997,
        },
      },
      data: {
        title: "收款",
        cjk_list: [
          {
            datetime: "2019-09-01",
            totalMoney: "10000.00",
            loseMoney: "0.00",
            payStatus: "已支付",
          },
          {
            datetime: "2019-09-01",
            totalMoney: "11000.00",
            loseMoney: "5100.00",
            payStatus: "未支付",
          },
          {
            datetime: "2019-09-01",
            totalMoney: "12000.00",
            loseMoney: "5200.00",
            payStatus: "未支付",
          },
        ],
      },
    },
    {
      id: "113087",
      type: "money_transfer",
      meta: {
        position: {
          x: 3207.15,
          y: 0,
        },
      },
      data: {
        title: "转账",
      },
    },
    {
      id: "113136",
      type: "pause",
      meta: {
        position: {
          x: 2706.05,
          y: 58.52499999999998,
        },
      },
      data: {
        title: "中止",
      },
    },
    {
      id: "153687",
      type: "end",
      meta: {
        position: {
          x: 3708.25,
          y: 904.942661425987,
        },
      },
      data: {
        title: "终结",
      },
    },
  ],
  edges: [
    {
      sourceNodeID: "105482",
      targetNodeID: "133429",
    },
    {
      sourceNodeID: "133429",
      targetNodeID: "112559",
    },
    {
      sourceNodeID: "112559",
      targetNodeID: "100411",
    },
    {
      sourceNodeID: "100411",
      targetNodeID: "113136",
    },
    {
      sourceNodeID: "100411",
      targetNodeID: "136781",
    },
    {
      sourceNodeID: "100411",
      targetNodeID: "153687",
    },
    {
      sourceNodeID: "136781",
      targetNodeID: "113136",
    },
    {
      sourceNodeID: "136781",
      targetNodeID: "131639",
    },
    {
      sourceNodeID: "136781",
      targetNodeID: "153687",
    },
    {
      sourceNodeID: "131639",
      targetNodeID: "113087",
    },
    {
      sourceNodeID: "131639",
      targetNodeID: "144017",
    },
    {
      sourceNodeID: "131639",
      targetNodeID: "148353",
    },
    {
      sourceNodeID: "131639",
      targetNodeID: "153687",
    },
    {
      sourceNodeID: "148353",
      targetNodeID: "115993",
    },
    {
      sourceNodeID: "115993",
      targetNodeID: "153687",
    },
    {
      sourceNodeID: "148353",
      targetNodeID: "153687",
    },
  ],
};
